// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** deleteSysNotification POST /api/sysNotification/delete */
export async function deleteSysNotificationUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/sysNotification/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getSysNotificationById GET /api/sysNotification/get */
export async function getSysNotificationByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getSysNotificationByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseSysNotification_>('/api/sysNotification/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listMySysNotificationByPage POST /api/sysNotification/list/my/page */
export async function listMySysNotificationByPageUsingPost(
  body: API.SysNotificationQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageSysNotification_>('/api/sysNotification/list/my/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listSysNotificationByPage POST /api/sysNotification/list/page */
export async function listSysNotificationByPageUsingPost(
  body: API.SysNotificationQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageSysNotification_>('/api/sysNotification/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updateSysNotification POST /api/sysNotification/update */
export async function updateSysNotificationUsingPost(
  body: API.SysNotificationUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/sysNotification/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updateAllSysNotification POST /api/sysNotification/update/all */
export async function updateAllSysNotificationUsingPost(options?: { [key: string]: any }) {
  return request<API.BaseResponseBoolean_>('/api/sysNotification/update/all', {
    method: 'POST',
    ...(options || {}),
  });
}
